import request from '../utils/request'

// 双轴转台串口通讯
export function connect(params) {
  return request({
    url: '/api/zhuan-tai/connect',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    loaidng: false,
    data: params
  })
}

// 双轴转台串口通讯关闭
export function connectCancel(params) {
  return request({
    url: '/api/zhuan-tai/connect-cancel',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    loaidng: false,
    data: params
  })
}

// 双轴转台使能
export function zhuanTaiShiNeng(params) {
  return request({
    url: '/api/zhuan-tai/shi-neng',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    loaidng: false,
    data: params
  })
}

// 双轴转台使能取消
export function zhuanTaiShiNengCancel(params) {
  return request({
    url: '/api/zhuan-tai/shi-neng-cancel',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    loaidng: false,
    data: params
  })
}

// 双轴转台使能
export function runZhuanTai(params) {
  return request({
    url: '/api/zhuan-tai/run',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    loaidng: false,
    data: params
  })
}
